﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

using Marking.Dashboard.Views.Finance;

namespace Marking.Dashboard.Views.Sales
{
    public partial class SalesView : UserControl
    {
        public SalesView()
        {
            InitializeComponent();
        }

        private void SalesLineChartView_SalesInfoClick(object sender, SalesInfoClickEventArgs e)
        {
            if (this.MoneyButton.IsEnabled == false)
            {
                var window = new FinanceWindow();
                window.DataContext = e.SalesInfo.ExtraInfos;
                window.Show();
            }
        }
    }
}
